package com.juefeng.SMS.pojo;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.juefeng.pojo.base.BasePojo;

public class SmsMessageLog extends BasePojo implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Long rowId;

    private Long sysType;

    private String phoneNo;

	private String messageContent;

    private Date logCreateTime;
    
    private String logCreateTimeString;

    private Long apiType;

    private String smsStates;

    private String msgId;

    private Date confirmTime;

    private String msg;
    
    private Date logCreateTimeStart;

    private Date logCreateTimeEnd;
    
    private String modelType;

    
    public String getModelType() {
		return modelType;
	}

	public void setModelType(String modelType) {
		this.modelType = modelType;
	}

	public String getLogCreateTimeString() {
    	return logCreateTimeString;
    }
    
    public void setLogCreateTimeString(String logCreateTimeString) {
    	this.logCreateTimeString = logCreateTimeString;
    }
    public Date getLogCreateTimeStart() {
		return logCreateTimeStart;
	}

	public void setLogCreateTimeStart(Date logCreateTimeStart) {
		this.logCreateTimeStart = logCreateTimeStart;
	}

	public Date getLogCreateTimeEnd() {
		return logCreateTimeEnd;
	}

	public void setLogCreateTimeEnd(Date logCreateTimeEnd) {
		this.logCreateTimeEnd = logCreateTimeEnd;
	}

	public Long getRowId() {
        return rowId;
    }

    public void setRowId(Long rowId) {
        this.rowId = rowId;
    }

    public Long getSysType() {
        return sysType;
    }

    public void setSysType(Long sysType) {
        this.sysType = sysType;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo == null ? null : phoneNo.trim();
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent == null ? null : messageContent.trim();
    }

    public Date getLogCreateTime() {
        return logCreateTime;
    }

    public void setLogCreateTime(Date logCreateTime) {
        this.logCreateTime = logCreateTime;
        String pattern = "yyyy-MM-dd HH:mm:ss";
		SimpleDateFormat dateFormat = new SimpleDateFormat(pattern); 
        this.logCreateTimeString = logCreateTime != null?dateFormat.format(logCreateTime) : "";
    }

    public Long getApiType() {
        return apiType;
    }

    public void setApiType(Long apiType) {
        this.apiType = apiType;
    }

    public String getSmsStates() {
        return smsStates;
    }

    public void setSmsStates(String smsStates) {
        this.smsStates = smsStates == null ? null : smsStates.trim();
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId == null ? null : msgId.trim();
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg == null ? null : msg.trim();
    }

	@Override
	public String toString() {
		return "SmsMessageLog [rowId=" + rowId + ", sysType=" + sysType
				+ ", phoneNo=" + phoneNo + ", messageContent=" + messageContent
				+ ", logCreateTime=" + logCreateTime + ", logCreateTimeString="
				+ logCreateTimeString + ", apiType=" + apiType + ", smsStates="
				+ smsStates + ", msgId=" + msgId + ", confirmTime="
				+ confirmTime + ", msg=" + msg + ", logCreateTimeStart="
				+ logCreateTimeStart + ", logCreateTimeEnd=" + logCreateTimeEnd
				+ ", modelType=" + modelType + "]";
	}

    
}